package com.smallrig.extension.dto;



public class BizScene {
    public final static String DEFAULT_BIZ_ID = "#defaultBizId#";
    public final static String DEFAULT_VERSION = "#defaultVersion#";
    private final static String DOT_SEPARATOR = ".";

    private String bizId = DEFAULT_BIZ_ID;

    private String version = DEFAULT_VERSION;


    public String getUniqueIdentity(){
        return bizId + DOT_SEPARATOR + version;
    }
    public static BizScene valueOf(String bizId, String version){
        BizScene bizScenario = new BizScene();
        bizScenario.bizId = bizId;
        bizScenario.version = version;
        return bizScenario;
    }
    public static BizScene valueOf(Integer bizId, String version){
        return valueOf(""+bizId,version);
    }

    public static BizScene valueOf(Integer bizId){
        return valueOf(""+bizId);
    }
    public static BizScene valueOf(Long bizId, String version){
        return valueOf(""+bizId,version);
    }

    public static BizScene valueOf(Long bizId){
        return valueOf(""+bizId);
    }

    public static BizScene valueOf(String bizId){
        return BizScene.valueOf(bizId, DEFAULT_VERSION);
    }

}
